const getters = {
  sidebar: state => state.app.sidebar,
  classOn: state => state.app.classOn,
  two_level_open: state => state.app.two_level_open,
  device: state => state.app.device,
  token: state => state.user.token,
  userInfo: state => state.user.userInfo,
  avatar: state => state.user.avatar,
  show_original_order_data: state =>
    state.user.userInfo.show_original_order_data,
  is_batch: state => state.user.userInfo.is_batch,//批次管理获取值
  name: state => state.user.name,
  contract_period: state => state.user.contract_period,
  is_expired: state => state.user.is_expired,
  // 是否支付
  domestic: state => state.user.domestic,
  permission: state => state.app.permission,
  nav: state => state.user.nav,
  companyInfo: state => state.user.companyInfo,
  site_title: state => state.user.site_title,
  ids: state => state.app.ids,
  indexSetting: state => state.user.indexSetting,
  shop_url: state => state.user.shop_url,
  contract_period_url: state => state.user.contract_period_url,
  //更新状态
  document_status: state => state.user.document_status,
  document_url: state => state.user.document_url,
  wx_customer_service: state => state.user.wx_customer_service,
  //------------匹配后台菜单--------------
  // TODO 菜单匹配
  // true  匹配后端返回的菜单  false  匹配本地菜单
  matchTheMenu: state => state.settings.matchTheMenu
  //------------匹配后台菜单--------------
};
export default getters;
